package com.kgc.novel.domain.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BookDiscountParam implements Serializable {
    private static final long serialVersionUID = 1L;
    private int pageNo = 1;
    private int pageSize = 10;
    /**
     * 主键
     * */
    private String id;
    /**
     * 标题（7天包周）
     * */
    private String title;
    /**
     * 到期时间
     * */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expireTime;
}
